package com.aos.erp.schools.model.branchschool.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 驾校信息表
 * </p>
 *
 * @author ywb
 * @since 2018-11-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_drivers_school")
public class BranchSchool implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long    id;
    /**
     * 是否是虚拟的驾校（每个省市级都有唯一 一个）【0：否  1：是 】
     */
    @TableField("is_fictitious")
    private Integer isFictitious;
    /**
     * 类别  （1：直营总校  2：非直营总校  3:分校 4：报名点）
     */
    private Integer type;
    /**
     * 父级驾校ID
     */
    @TableField("parent_id")
    private Long parentId;
    /**
     * 分所ID
     */
    @TableField("division_id")
    private Long divisionId;
    /**
     * 企业名称
     */
    private String name;
    /**
     * 驾校简称
     */
    private String abbreviation;
    /**
     * 驾校代码
     */
    private String code;
    /**
     * 营业执照注册号
     */
    private String licensenumber;
    /**
     * 省ID
     */
    @TableField("province_id")
    private Long provinceId;
    /**
     * 市ID
     */
    @TableField("city_id")
    private Long cityId;
    /**
     * 区县ID
     */
    @TableField("area_id")
    private Long areaId;
    /**
     * 详细地址
     */
    private String address;
    /**
     * 经度
     */
    private String longitude;
    /**
     * 纬度
     */
    private String latitude;
    /**
     * 联系人
     */
    private String contacts;
    /**
     * 手机号
     */
    private String  mobile;
    /**
     * 注册密码
     */
    private String  password;
    /**
     * 电子邮箱
     */
    private String  email;
    /**
     * 审核状态（1：审核中；2：审核成功；3：审核失败）
     */
    private Integer status;
    /**
     * 备注、审核结果反馈
     */
    private String  remark;

    /**
     * 组织代码
     */
    private String  depCode;
    /**
     * 创建人
     */
    @TableField("create_user")
    private Long    createUser;
    /**
     * 创建时间
     */
    private Date    created;
    /**
     * 修改时间
     */
    private Date    updated;
    /**
     * 审核时间
     */
    private Date    auditdate;
    /**
     * 是否删除  （0：是    1：否）
     */
    @TableField("is_del")
    private Integer isDel;

    @Override
    public String toString() {
        return "GatherListVo{" +
                "id=" + id +
                ", isFictitious=" + isFictitious +
                ", type=" + type +
                ", parentId=" + parentId +
                ", divisionId=" + divisionId +
                ", name='" + name + '\'' +
                ", abbreviation='" + abbreviation + '\'' +
                ", code='" + code + '\'' +
                ", licensenumber='" + licensenumber + '\'' +
                ", provinceId=" + provinceId +
                ", cityId=" + cityId +
                ", areaId=" + areaId +
                ", address='" + address + '\'' +
                ", longitude='" + longitude + '\'' +
                ", latitude='" + latitude + '\'' +
                ", contacts='" + contacts + '\'' +
                ", mobile='" + mobile + '\'' +
                ", password='" + password + '\'' +
                ", email='" + email + '\'' +
                ", status=" + status +
                ", remark='" + remark + '\'' +
                ", createUser=" + createUser +
                ", created=" + created +
                ", updated=" + updated +
                ", auditdate=" + auditdate +
                ", isDel=" + isDel +
                '}';
    }
}
